<?php
ini_set('display_errors', 'on');
@session_start();
if (!isset($_SESSION['user'])) {
	require 'login.php';
	exit();
}
if (!isset($_GET['uid'])) {
	require_once 'profile.php';
	exit();
}

$user = $_SESSION['user'];
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<link rel="shortcut icon" href="./img/favicon.ico" />
		<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
		<link rel="icon" href="./img/favicon.ico" type="image/x-icon" />
		<link rel="shortcut icon" href="./img/favicon.ico" type="image/x-icon" />
		<title>Wormhole</title>

		<link rel="stylesheet" type="text/css" media="screen" href="css/main.css" />
		<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script>
		<script>
			var session_user_info = <?php echo json_encode($user)?>;
            if( session_user_info['avatar'] == 0 ) {
				session_user_info['avatar'] = "./img/noavatar_small.gif";
			}
            var circle_uid = "<?php echo $_GET['uid']; ?>";
		</script>
		<script src="js/common.js" type="text/javascript"></script>
        <script src="js/circlefile.js" type="text/javascript"></script>
        <style>
            .type{
                color: white;
                float: left;
                font-size: 10px;
                text-align: center;
                width: 48px;
                margin-right: 5px;
            }
            .type-post {
                background-color: #7CC0CB;
                padding: 2px 0px;
            }
            .type-galaxy {
                background-color: #F99;
                padding: 2px 0px;
            }
            .new-bt{
                border: 1px solid transparent;
                color: white;
                font-size: 11px;
                font-weight: bold;
                height: 24px;
                line-height: 24px;
                margin-right: 16px;
                min-width: 54px;
                max-width: 90px;
                opacity: 0.7;
                outline: 0px;
                padding: 0px 8px;
                text-align: center;
                background-color: #777;
                margin:0 auto;
            }
            .new-bt:hover{
                cursor: pointer;
                opacity: 1.0;
            }
            .tri-down{
                border-left: 5px solid transparent;
                border-right: 5px solid transparent;
                border-bottom: 5px solid #777;
                width: 0;
                margin:0 auto;
            }
            .common-nebula{
                color:white;
                width:180px;
                background-color: #777;
                padding:2px;
                min-height: 70px;
                margin: 0 auto;
                overflow: auto;
            }
            .common-item{
                border: 1px solid #DDD;
                float: left;
                height: 35px;
                margin: 3px;
                width: 35px;
            }
            .common-item:hover{
                border: 1px solid red;
            }
        </style>
	</head>
	<body>
        <div id="topBar"></div>

		<div id="content-container" class="rounded">

				<div id="news-container" class="section-padding" style="min-height:650px;">
					<div class="section-area"><h2>Tagged Nebulas</h2></div>
					<div class="nebulas-block" style="overflow:hidden;">
                        <div class="showall"></div>
					</div>
					<div class="section-area"><h2>Recent Viewed Posts</h2></div>
					<div class="news-block recent-post">
						<ul>
						</ul>
					</div>
                    <div class="section-area"><h2>Recent Viewed Galaxies</h2></div>
					<div class="news-block recent-galaxy">
						<ul>
						</ul>
					</div>

				</div>
				<div id="profile-container" class="section-padding">
						<div class="section-area"><h2 id ="view-name"></h2></div>
						<div class="avatar-block">
							<div class="avatar">
							</div>
						</div>
						<div class="status-block">
                        </div>
                        <div class="circle-block">
                        </div>
                        <div class="circle-content">
                        </div>
						
				</div>
		</div>
	</body>
</html>
